<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--jsp声明语句--%>
<%!
    int number = 500;

    public int run(){
        number ++;
        return number;
    }
%>

<%
    // 调用声明的方法
    int num = run();
    System.out.println(num);
%>
</body>
</html>
